package com.netease.task.dao;

import com.netease.task.meta.Book;
import org.apache.ibatis.annotations.Mapper;


import java.util.List;


@Mapper
public interface BookMapper {

    List<Book> getBooks();

    int addBook(Book book);

    int deleteBook(Integer id);

    Book getBookById(Integer id);

    Integer getIdByTitle(String title);

    int updateById(Book book);

    List<Book> getBooksNoSell();

    List<Book> getBooksSelled();

    int updateIsSell(Integer id);

}
